package com.shen.cloud.dao;

import com.shen.cloud.pojo.Department;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Mapper
@Repository
public interface DepartmentDao {
    /*增加一个部门*/
    boolean insertDepartment(Department department);
    /*根据id查询一个部门*/
    Department selectDepartmentById(@Param("id")Long id);
    /*查询所有部门*/
    List<Department> selectAllDepartment();
}
